<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
<title>KISSY Editor Test</title>
    <link href="/kissy/build/editor/theme/cool/editor.css" rel="stylesheet"/>
</head>
<body>
<h1 style="font-size: 2em;text-align: center;margin: 2em;">Simple KISSY Editor</h1>


<div style="width: 90%;margin: 20px auto;">
    <textarea id="ks-editor-textarea" style='width:600px;height:400px'></textarea>
    <button onclick="window.newEditor.destroy();">destroy</button>
</div>
<script src="/kissy/build/seed.js"></script>
<script src="/kissy/src/package.js"></script>
<script src="dev.js"></script>
<script>
window.UPLOAD_SINGLE_URL="upload_domain.jss";
</script>
<script>
    window.EDITOR_CFG = {
        fromTextarea:'#ks-editor-textarea'
    };
</script>
<script src="./build/demo.js"></script>
<script>
    setTimeout(function () {
        alert("set domain");
        document.domain = "localhost";
    }, 5000);
</script>
</body>
</html>